OfflineContentManager

interface OfflineContentManager

Provides the means to download and store sources locally that can be played back with a Player without an active network connection. An OfflineContentManager instance can be created via the OfflineContentManager.getOfflineContentManager function.

Types

Companion
Link copied to clipboard
object Companion

Properties

offlineSourceConfig
Link copied to clipboard
abstract val offlineSourceConfig: OfflineSourceConfig?
Creates an OfflineSourceConfig, which can be used to play the offline content with a Player or returns null, if no offline content is available.
remainingOfflineLicenseDuration
Link copied to clipboard
abstract val remainingOfflineLicenseDuration: DrmLicenseInformation
A DrmLicenseInformation object containing the remaining drm license duration and the remaining playback duration.
usedStorage
Link copied to clipboard
abstract val usedStorage: Long
Returns how many bytes of storage are used by the offline content.

Functions

deleteAll
Link copied to clipboard
abstract fun deleteAll()
Deletes everything related to the related content ID.
downloadLicense
Link copied to clipboard
abstract fun downloadLicense()
Downloads the offline license.
getOptions
Link copied to clipboard
abstract fun getOptions()
Loads the current OfflineContentOptions and passes them to OfflineContentManagerListener.onOptionsAvailable.
process
Link copied to clipboard
abstract fun process(offlineContentOptions: OfflineContentOptions)
Enqueues downloads and deletions according to the current OfflineOptionEntryState and OfflineOptionEntryAction of the OfflineOptionEntry in the OfflineContentOptions.
release
Link copied to clipboard
abstract fun release()
Releases the memory resources.
releaseLicense
Link copied to clipboard
abstract fun releaseLicense()
Releases the currently held offline license.
renewOfflineLicense
Link copied to clipboard
abstract fun renewOfflineLicense()
Renews the already downloaded DRM license.
resume
Link copied to clipboard
abstract fun resume()
Resumes all suspended actions.
suspend
Link copied to clipboard
abstract fun suspend()
Suspends all active actions.